/**
 * 外出套件
 */
export const goOutChildren = [
    {
        label: '开始时间',
        formId: 'startTime',
        tag: 'Date',
        dataType: 'hourMinute',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择开始时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择开始时间',
            allowClear: false
        }
    },
    {
        label: '结束时间',
        formId: 'endTime',
        tag: 'Date',
        dataType: 'hourMinute',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择结束时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择结束时间',
            allowClear: false
        }
    },
    {
        label: '时长',
        formId: 'duration',
        tag: 'Input',
        autofill: true,
        extra: '外出时长将自动计入考勤统计',
        rules: [
            {
                required: true,
                message: '时长不能为空！'
            }
        ],
        options: {
            disabled: true,
            placeholder: '时长'
        },
        inFormAuth: false
    },
    {
        label: '同行人',
        formId: 'partner',
        tag: 'ContactsInput',
        rules: [],
        options: {
            disabled: true
        }
    },
    {
        label: '外出事由',
        formId: 'outReason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入'
        },
        isSummary: true
    }
];

export const goOutControl = {
    label: '外出申请',
    cmpType: 'custom',
    formId: '',
    key: 'GoOut',
    tag: 'GoOut',
    tagIcon: 'iconprocess_common_leaveapply_icon',
    children: goOutChildren
};
